package com.excellence.mapper;

import com.excellence.pojo.KnowledgeBase;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 徐瑞琪
 */
@Mapper
public interface KnowledgeBaseMapper {
    //新增知识
    void insert(KnowledgeBase record);

    //根据ID查看知识
    KnowledgeBase selectById(Integer knId);

    //通过知识类型查找知识
    List<KnowledgeBase> selectByKnType(String knType);

    //查看所有知识信息
    List<KnowledgeBase> selectAll();

    //修改知识信息
    void update(KnowledgeBase record);

}
